<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form" method="post">

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">商家</label>
            <div class="layui-input-inline">
                <select name="business_id"  class="layui-select">
                    <option value="0">- 请选择 -</option>
                    {foreach $getBusinessList as $k=>$v}
                    <option value="{$k}" >{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">优惠券名称</label>
            <div class="layui-input-block">
                <input type="text" name="coupon_title" class="layui-input" lay-verify="required" placeholder="请输入优惠券名称" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">优惠券面值</label>
            <div class="layui-input-block">
                <input type="number" name="coupon_price" class="layui-input" lay-verify="required" placeholder="请输入优惠券面值" value="0.00">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">优惠券类型</label>
            <div class="layui-input-block">
                {foreach $getCouponTypeList as $k=>$v}
                <input type="radio" name="coupon_type" value="{$k}" title="{$v}" lay-filter="coupon_type" {in name="k" value="0"}checked=""{/in}>
                {/foreach}
            </div>
        </div>

        <div class="layui-form-item use_type">
            <label class="layui-form-label">使用类型</label>
            <div class="layui-input-block">
                {foreach $getUseTypeList as $k=>$v}
                <input type="radio" name="use_type" value="{$k}" title="{$v}" {in name="k" value="0"}checked=""{/in}>
                {/foreach}
            </div>
        </div>

        <!--<div class="layui-form-item">-->
        <!--    <label class="layui-form-label">优惠券类型id</label>-->
        <!--    <div class="layui-input-block">-->
        <!--        <input type="text" name="use_type_id" class="layui-input" placeholder="请输入优惠券类型id" value="">-->
        <!--    </div>-->
        <!--</div>-->
        <div class="layui-form-item">
            <label class="layui-form-label">领取优惠券类型</label>
            <div class="layui-input-block">
                {foreach $getReceiveTypeList as $k=>$v}
                <input type="radio" name="receive_type" value="{$k}" title="{$v}" lay-filter="receive_type" {in name="k" value="1"}checked=""{/in}>
                {/foreach}
            </div>
        </div>

        <div class="layui-form-item time_limit">
            <label class="layui-form-label">是否限领取时间</label>
            <div class="layui-input-block">
                {foreach $getIsTimeLimitList as $k=>$v}
                <input type="radio" name="is_time_limit" value="{$k}" title="{$v}" lay-filter="time_limit" {in name="k" value="1"}checked=""{/in}>
                {/foreach}
            </div>
        </div>
        <div class="layui-form-item times">
            <label class="layui-form-label">领取开启时间</label>
            <div class="layui-input-block">
                <input type="text" name="start_time" class="layui-input" id="start_time" autocomplete="off" placeholder="yyyy年MM月dd日" value="">
            </div>
        </div>
        <div class="layui-form-item times">
            <label class="layui-form-label">领取结束时间</label>
            <div class="layui-input-block">
                <input type="text" name="end_time" class="layui-input" id="end_time" autocomplete="off" placeholder="yyyy年MM月dd日" value="">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">使用时间(天)</label>
            <div class="layui-input-block">
                <input type="number" name="use_days" class="layui-input"  placeholder="请输入使用时间(天)" value="0">
            </div>
        </div>
        <div class="layui-form-item permanent">
            <label class="layui-form-label">是否无限制</label>
            <div class="layui-input-block">
                {foreach $getIsPermanentList as $k=>$v}
                <input type="radio" name="is_permanent" value="{$k}" title="{$v}" lay-filter="permanent" {in name="k" value="1"}checked=""{/in}>
                {/foreach}
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                {foreach $getStatusList as $k=>$v}
                <input type="radio" name="status" value="{$k}" title="{$v}" {in name="k" value="1"}checked=""{/in}>
                {/foreach}
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>